package com.gmq.chapter02.t3;

/**
 * Created by gmq on 2017/08/22.
 *
 * @version 1.0
 * @since 2017/08/22 16:28
 */
public class Test {

    public static void main(String[] args) {
        try {
            PublicVar publicVar = new PublicVar();
            ThreadA threadA = new ThreadA(publicVar);
            threadA.start();
            Thread.sleep(200);  // 打印结果受此值大小影响
            System.out.println("main==");
            publicVar.getValue();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
